package com.example.server.web.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

@Configuration
//@ConfigurationProperties(prefix = "sys")
public class SysConfig {
    /**
     * 文件路径
     * Linux : /data/stu_image/
     * windows : D:/xxx/uploadPath/
     * */
    private static String profile = "/data/stu_image/";

    /**
     * 文件路径
     * Linux : /data/rdata/
     * windows : D:/rdata/
     * */
    private static String rfile = "/data/rdata/";

    /**
     * R语言服务器地址
     * 服务器 : 124.71.222.161
     * 本地 : 127.0.0.1
     * */

    private static String rurl = "124.71.222.161";

    public static String getRurl() {
        return rurl;
    }

    public static void setRurl(String rurl) {
        SysConfig.rurl = rurl;
    }

    public static final String[] IMAGE_EXTENSION = { "bmp", "jpg", "jpeg", "png" };

    public static String getRfile() {
        return rfile;
    }

    public static void setRfile(String rfile) {
        SysConfig.rfile = rfile;
    }

    public static String getProfile() {
        return profile;
    }

    public static void setProfile(String profile) {
        SysConfig.profile = profile;
    }
}
